const stringToArray = (param) => {
  const arr = param.split(',')
  const newArr = []
  arr.forEach((item, index) => {
    if (item !== '') {
      newArr.push(item)
    };
  })
  return newArr
}

export default stringToArray;
